package com.zhijiang.hospital.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.zhijiang.hospital.entrty.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

@Mapper
public interface RepairMapper {


    List<Repair> selectAllByTime(@RequestParam("startTime") String startTime,
                                 @RequestParam("endTime")String endTime);

    String repairSelectMaxId();

    Integer insert(@Param("repair") Repair repair);

    Repair selectMyRepairOrderById(@Param("maxId") String maxId,@Param("s")  String s);

    List<Employee> selectEmployee(String repairApplyPhone);

    List<Department> selectDepartById(String repairApplyDept);

    Repair selectByRepairApllyid(String repairApplyId);

    List<TImage> selectImageByRepairApllyid(String repairApplyId);

    List<Repair> selectByToDateRepairAll(String start, String end);

    List<DutyTable> selectXxkPaiban1();

    void updateByRepairapplyid(@Param(value = "repairApplyId") String repairApplyId,@Param(value = "repairOperator") String repairOperator,@Param(value = "repairAcceptDate") Date repairAcceptDate);

    List<DutyTable> selectXxkPaiban5();
}
